package services

import (
	"context"
	"github.com/golang/protobuf/ptypes/empty"
	"github.com/golang/protobuf/ptypes/wrappers"
	context2 "kop/framework/context"
	"kop/modules/port/client"
	"kop/pb"
)

type PortService struct {
	context2.Context
}

func (*PortService) Ports(ctx context.Context, req *empty.Empty) (*pb.PortsResp, error) {

	return client.PortService.Ports(ctx, req)
}

func (*PortService) Choose(ctx context.Context, req *wrappers.Int32Value) (*empty.Empty, error) {

	return client.PortService.Choose(ctx, req)
}

func (*PortService) Invest(ctx context.Context, req *empty.Empty) (*pb.InvestResp, error) {

	return client.PortService.Invest(ctx, req)
}

func (*PortService) AddNum(ctx context.Context, req *empty.Empty) (*wrappers.Int32Value, error) {
	return client.PortService.AddNum(ctx, req)
}

func (*PortService) Refresh(ctx context.Context, req *empty.Empty) (*pb.PortsResp, error) {
	return client.PortService.Refresh(ctx, req)
}
